﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

using Radar.Optimization;
using Radar.PathFinding;

namespace Radar.Navigation
{
    internal class NavMesh
    {

        internal NavMesh()
        {
        }

        #region Published Methods

        internal NavZone GetZoneAt(Point point)
        {
            return Grid.GetZoneAt(point);
        }

        internal PathSearcher GetPathSearcher(Point start, Point end)
        {
            if (start != end)
            {
                return new PathSearcher(this, start, end);
            }
            else
            {
                return null;
            }
        }

        #endregion

        internal Grid Grid;

        internal NavZone[] Zones;

        internal WaypointUniqueCollection Waypoints;

    }
}
